package com.masterclient.app.businessmodule.usermodule.login.contract;

import android.support.annotation.NonNull;

import com.eoner.baselib.presenter.FCBasePresenter;
import com.eoner.baselib.presenter.IFCBaseView;
import com.masterclient.app.businessmodule.usermodule.login.beans.AuthBindData;
import com.masterclient.app.businessmodule.usermodule.login.beans.InviteInfoData;
import com.masterclient.app.businessmodule.usermodule.login.beans.LoginSuccessData;

/**
 * 作者：sean
 * 创建时间：2017/8/23 14:00
 * 功能说明：
 */

public interface BindPhoneContract{

    interface View extends IFCBaseView {
        void getCaptchaSuccess();
        void getCaptchaFailed(String msg);
        void authBindSuccess(String code,AuthBindData data,String msg,String inviteCode);
        void authBindFailded(String msg);
        void showInviteInfo(InviteInfoData data);
        void showInviteInfoFail(String msg);
        void checkSuccess(LoginSuccessData data);
        void checkFailded(String msg, String failReason);
    }

    abstract static class Presenter extends FCBasePresenter<View> {

        public abstract void checkCaptcha(@NonNull String captcha, @NonNull String mobile,String type,String customer_id,String invite_code,String uid,String union_id,String auth_type,String nick_name,String headimgurl);
        public abstract void authBind(String auth_type, String mobile, String union_id,String invite_id,String uid,String nick_name,String headimgurl,String nonce,String customer_id,String reward_id);
        public abstract void getCaptcha(String mobile,String type,String ne);
        public abstract void getInviteInfo(String code);

    }
}